#include "Scanner.h"
#include "../Buffer/Buffer.h"

#include <iostream>

using std::cout;
using std::endl;
using std::flush;

int main() {
	cout << "Start" << endl;
	Buffer buffer;
	buffer.init("inputfile.txt", "outputfile.txt");
	
	Scanner scanner(buffer);
	Token t(NONE, 0, 0, NULL);

	cout << "Starting\n";
	while (scanner.nextToken(t)) {
		cout << t.getLexem() << endl;
	}
	cout << "End\n";
	return 0;
}
